package com.jiyang.jyandroid.other;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;

/**
 * Created by jy on 2016/11/25.
 * my service
 */

public class ServiceTest extends Service {
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.i("TAG", "后台服务通过广播启动");
        return super.onStartCommand(intent, flags, startId);
    }
}
